<html>
<head><meta charset="utf-8"><title>remedial education for Niko · project-error-handling · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/index.html">project-error-handling</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html">remedial education for Niko</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="243692000"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243692000" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243692000">(Jun 23 2021 at 18:18)</a>:</h4>
<p>Hey <span class="user-mention" data-user-id="220273">@Jane Lusby</span> or others. What is the easiest and correct way to attach context to errors these days? I am using <code>anyhow</code> and I basically just want to know (e.g.) <em>which</em> file it is that I can't open anyway</p>



<a name="243692064"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243692064" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243692064">(Jun 23 2021 at 18:18)</a>:</h4>
<p>just putting <code>?</code> isn't getting me the backtrace I crave :)</p>



<a name="243692449"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243692449" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sean McArthur <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243692449">(Jun 23 2021 at 18:21)</a>:</h4>
<p>Perhaps with the <code>anyhow::Context</code> trait? <code>let buf = fs::read(path).with_context(|| format!("failed to read {:?}", path.display()))?</code></p>



<a name="243692464"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243692464" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243692464">(Jun 23 2021 at 18:21)</a>:</h4>
<p>I think it depends on the situation. Given that you already have <code>anyhow</code> and you're presumably not worrying about how this affects how you can react to specific error cases then using <code>.context</code> provided by anyhow would probably be easiest</p>



<a name="243692501"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243692501" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243692501">(Jun 23 2021 at 18:21)</a>:</h4>
<p>as Sean said</p>



<a name="243692600"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243692600" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243692600">(Jun 23 2021 at 18:22)</a>:</h4>
<p>That's what I'd suggest as well.</p>



<a name="243692607"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243692607" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243692607">(Jun 23 2021 at 18:22)</a>:</h4>
<p>alternatively if you're using <code>tracing</code> and you only need this additional context for debugging and would prefer to not have it shown in error reports to users I would recommend using <code>tracing-error</code> and <code>eyre</code></p>



<a name="243692618"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243692618" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243692618">(Jun 23 2021 at 18:22)</a>:</h4>
<p>since that's exactly what they were designed for</p>



<a name="243692650"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243692650" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243692650">(Jun 23 2021 at 18:22)</a>:</h4>
<p>There are also some helper libraries that give you functions with the same signature as <code>fs::read</code> or <code>fs::open</code> that automatically attach error context.</p>



<a name="243692687"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243692687" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243692687">(Jun 23 2021 at 18:22)</a>:</h4>
<p>Depends on where you're using it and if you mind the additional overhead of doing it for every operation.</p>



<a name="243950881"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243950881" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243950881">(Jun 25 2021 at 18:09)</a>:</h4>
<p>I don't care at all about overhead</p>



<a name="243950911"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243950911" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243950911">(Jun 25 2021 at 18:09)</a>:</h4>
<p>but I care about the ergonomic hit of <code>.with_context(| format!(...))</code>, which feels awfully clunky</p>



<a name="243950924"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243950924" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243950924">(Jun 25 2021 at 18:09)</a>:</h4>
<p>maybe good enough I guess</p>



<a name="243950978"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243950978" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243950978">(Jun 25 2021 at 18:10)</a>:</h4>
<p>postfix macross</p>



<a name="243950979"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243950979" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243950979">(Jun 25 2021 at 18:10)</a>:</h4>
<p><span class="user-mention" data-user-id="220273">@Jane Lusby</span> do I want eyre? I care about how pretty things look when they print out</p>



<a name="243950987"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243950987" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243950987">(Jun 25 2021 at 18:10)</a>:</h4>
<p>and I care about not having to work very hard</p>



<a name="243950993"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243950993" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243950993">(Jun 25 2021 at 18:10)</a>:</h4>
<p><span class="user-mention silent" data-user-id="116009">nikomatsakis</span> <a href="#narrow/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko/near/243950979">said</a>:</p>
<blockquote>
<p><span class="user-mention silent" data-user-id="220273">Jane Lusby</span> do I want eyre? I care about how pretty things look when they print out</p>
</blockquote>
<p>if you want to control the format then you definitely want eyre</p>



<a name="243951002"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951002" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951002">(Jun 25 2021 at 18:10)</a>:</h4>
<p>this is for <a href="https://github.com/optopodi/optopodi/">https://github.com/optopodi/optopodi/</a></p>



<a name="243951009"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951009" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951009">(Jun 25 2021 at 18:10)</a>:</h4>
<p>unless you're happy with anyhow's defaults</p>



<a name="243951014"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951014" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951014">(Jun 25 2021 at 18:10)</a>:</h4>
<p>because anyhow isn't configurable</p>



<a name="243951028"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951028" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951028">(Jun 25 2021 at 18:10)</a>:</h4>
<p>probably I don't care that much now, but I might eventually care</p>



<a name="243951055"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951055" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951055">(Jun 25 2021 at 18:11)</a>:</h4>
<p>does eyre support "everything gets upcast to a single easy type"?</p>



<a name="243951061"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951061" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951061">(Jun 25 2021 at 18:11)</a>:</h4>
<p>if you want it to be easy and nice looking <a href="https://docs.rs/color-eyre/0.5.11/color_eyre/">https://docs.rs/color-eyre/0.5.11/color_eyre/</a> is supposed to be a reasonable defaults for a fancy reporting hook</p>



<a name="243951075"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951075" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951075">(Jun 25 2021 at 18:11)</a>:</h4>
<p><span class="user-mention silent" data-user-id="116009">nikomatsakis</span> <a href="#narrow/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko/near/243951055">said</a>:</p>
<blockquote>
<p>does eyre support "everything gets upcast to a single easy type"?</p>
</blockquote>
<p>not sure what you mean</p>



<a name="243951095"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951095" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951095">(Jun 25 2021 at 18:11)</a>:</h4>
<p><code>anyhow::Error</code> is very convenient</p>



<a name="243951100"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951100" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951100">(Jun 25 2021 at 18:11)</a>:</h4>
<p>it supports pretty much everything anyhow does</p>



<a name="243951102"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951102" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951102">(Jun 25 2021 at 18:11)</a>:</h4>
<p>its a fork of anyhow</p>



<a name="243951115"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951115" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951115">(Jun 25 2021 at 18:11)</a>:</h4>
<p>got it</p>



<a name="243951120"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951120" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951120">(Jun 25 2021 at 18:11)</a>:</h4>
<p>it even re-exports a lot of the renamed types with the original names</p>



<a name="243951126"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951126" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951126">(Jun 25 2021 at 18:11)</a>:</h4>
<p>so it should be pretty easy to drop in swap</p>



<a name="243951183"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951183" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951183">(Jun 25 2021 at 18:12)</a>:</h4>
<p>ok</p>



<a name="243951188"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951188" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951188">(Jun 25 2021 at 18:12)</a>:</h4>
<p>I'll do that at some point then</p>



<a name="243951193"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951193" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951193">(Jun 25 2021 at 18:12)</a>:</h4>
<p>sick :D</p>



<a name="243951203"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951203" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951203">(Jun 25 2021 at 18:12)</a>:</h4>
<p>I would like it if there were a way to get backtraces by default with zero effort on my part</p>



<a name="243951218"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951218" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951218">(Jun 25 2021 at 18:12)</a>:</h4>
<p>(and then I can later add nice, user-understable context)</p>



<a name="243951222"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951222" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951222">(Jun 25 2021 at 18:12)</a>:</h4>
<p>is that a thing?</p>



<a name="243951241"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951241" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951241">(Jun 25 2021 at 18:12)</a>:</h4>
<p>stable-eyre is the "just give me backtraces and nothing else" hook i made</p>



<a name="243951267"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951267" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951267">(Jun 25 2021 at 18:13)</a>:</h4>
<p><a href="https://docs.rs/stable-eyre/0.2.2/stable_eyre/">https://docs.rs/stable-eyre/0.2.2/stable_eyre/</a></p>



<a name="243951275"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951275" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951275">(Jun 25 2021 at 18:13)</a>:</h4>
<p>ack</p>



<a name="243951279"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951279" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951279">(Jun 25 2021 at 18:13)</a>:</h4>
<p>otherwise same format as default</p>



<a name="243951281"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951281" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951281">(Jun 25 2021 at 18:13)</a>:</h4>
<p>that sounds useful</p>



<a name="243951310"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/remedial%20education%20for%20Niko/near/243951310" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/remedial.20education.20for.20Niko.html#243951310">(Jun 25 2021 at 18:13)</a>:</h4>
<p>uses backtrace-rs so it works on stable, but you can't extract it through the Error trait for obvious reasons</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>